package wiki.zimo.certificate_manage.dao;

import wiki.zimo.certificate_manage.domain.Teacher;
import org.springframework.data.jpa.repository.JpaRepository;
/**
 *
 * @author 子墨
 * @date 2018/10/9 17:39
 * @describe 辅导员信息 数据操作接口
 */
public interface TeacherDao extends JpaRepository<Teacher, String> {

    /**
     * 根据教工号和密码查找对应教师，登录用
     * @author 子墨
     * @date 2018/10/17 19:42
     * @params [num, pwd]
     * @return wiki.zimo.certificate_manage.domain.Teacher
     */
    Teacher findTeacherByTeacherNumAndTeacherPassword(String num,String pwd);
    
    /**
     * 通过教师id查找对应教师信息
     * @author 子墨
     * @date 2018/10/23 15:10
     * @params [id]
     * @return wiki.zimo.certificate_manage.domain.Teacher
     */
    Teacher findTeacherById(String id);
}